package com.sm.scorpio.ui.bean.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * created by zhud on 2019/9/30
 */
public class UserDataBean implements Parcelable {
    public String nickname;
    public String sex;

    public UserDataBean() {
    }

    protected UserDataBean(Parcel in) {
        nickname = in.readString();
        sex = in.readString();
    }

    public static final Creator<UserDataBean> CREATOR = new Creator<UserDataBean>() {
        @Override
        public UserDataBean createFromParcel(Parcel in) {
            return new UserDataBean(in);
        }

        @Override
        public UserDataBean[] newArray(int size) {
            return new UserDataBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(nickname);
        dest.writeString(sex);
    }
}
